package com.itheima.day04Dome01;

import java.util.Scanner;

public class D04 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入文件名：");
        String fileName = scanner.next();

        //获取打印文件后缀
        String s = (fileName.substring(fileName.lastIndexOf("."),fileName.length()));
        //获取第一个字母大写
        String s1 = fileName.substring(0, 1).toUpperCase();


        //获取中间文件名小写
        String s2 = fileName.substring(1,fileName.lastIndexOf(".")).toLowerCase();

        System.out.println(s1  +s2+ s);
    }
}
